<template>
  <div>
    <div class="text">周末去哪</div>
    <div class="week-text" v-for="(item,index) in weekList">
      <img :src="item.imgUrl" alt="">
      <p>{{item.t1}}</p>
      <p>{{item.t2}}</p>
    </div>

  </div>
</template>

<script>
    export default {
        name: "Week",
      props:{
        weekList:Array
      },
      data(){
          return{
            // "WeekList": [
            //   {"id": "0001", "imgUrl": "http://img1.qunarzz.com/sight/source/1811/f3/86173f863bef61.jpg_r_640x214_52b003ac.jpg", "t1": "京城人的周末撒欢地", "t2": "在帝都过周末，不仅仅是城中游"},
            //   {"id": "0002", "imgUrl": "http://img1.qunarzz.com/sight/source/1811/7e/476589267ebb41.jpg_r_640x214_bf599709.jpg", "t1": "京城欢乐亲子游", "t2": "在帝都过周末，不仅仅是城中游"},
            //   {"id": "0003", "imgUrl": "http://img1.qunarzz.com/sight/source/1510/6e/1ea71e2f04e.jpg_r_640x214_aa6f091d.jpg", "t1": "京城有好泉", "t2": "在帝都过周末，不仅仅是城中游"},
            //   {"id": "0004", "imgUrl": "http://img1.qunarzz.com/sight/source/1505/aa/7baaf8a851d221.jpg_r_640x214_1431200f.jpg", "t1": "京城人的周末撒欢地", "t2": "在帝都过周末，不仅仅是城中游"}
            // ]
          }
      }
    }
</script>

<style lang="stylus" scoped>
.text{
  width: 100%;
  line-height: 0.4rem;
  background: #eee;
  padding-left: 0.1rem;
  box-sizing border-box;
}
  .week-text{
    margin-bottom 0.12rem;
    img{
     width 100%;
    }
    p{
      margin-top:0.12rem;
      margin-left 0.1rem;
    }
    p:nth-of-type(2){
      color #666;
      font-size 12px;
    }
  }
</style>
